]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme: Fix caption border gap
authorCarlos Soriano <csoriano@gnome.org>
Wed, 21 Jan 2015 16:26:23 +0000 (17:26 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 14:16:06 +0000 (15:16 +0100)
Since widnows decorations with round corners has a special shape,
which when scaled we can't match with a simple border-radius.
So to prevent to show a gap between the caption border and the
caption itself, apply a shadow.

data/theme/_common.scss
data/theme/gnome-shell-high-contrast.css
data/theme/gnome-shell.css

index 2c42f1b71b76385b6523663c9f036f800270d81b..fbaa8000c217c922a35e0fe6b2803911ab556392 100644 (file)
@@ -944,6 +944,10 @@ StScrollBar {
   .window-clone-border {
     border: 4px solid $selected_bg_color;
     border-radius: 4px;
+    // For window decorations with round corners we can't match
+    // the exact shape when the window is scaled. So apply a shadow
+    // to fix that case
+    box-shadow: inset 0px 0px 0px 1px $selected_bg_color;;
   }
   .window-caption {
     spacing: 25px;
index 0c21596d912cb516e59ef7879afeef53dea86c17..00203d46dc29a9c5b01462a2ea426f9043a05fdf 100644 (file)
@@ -1200,7 +1200,8 @@ StScrollBar {
 
 .window-clone-border {
   border: 4px solid #215d9c;
-  border-radius: 4px; }
+  border-radius: 4px;
+  box-shadow: inset 0px 0px 0px 1px #215d9c; }
 
 .window-caption {
   spacing: 25px;
index 0a669fefbbb79aa1c399acf3af5a1d0a9ccf99c5..d4668dc059643d0897dac4bdac995deac2ca3aa4 100644 (file)
@@ -1200,7 +1200,8 @@ StScrollBar {
 
 .window-clone-border {
   border: 4px solid #215d9c;
-  border-radius: 4px; }
+  border-radius: 4px;
+  box-shadow: inset 0px 0px 0px 1px #215d9c; }
 
 .window-caption {
   spacing: 25px;